Calculo de Errores:

t-student y Gaussiana

realizar ajuste t-student con 5 datos, gaussiana con 30


In [3]:
import numpy as np

data=np.loadtxt('data.csv',delimiter=',')

print data


[ 30.  50.  55.  40.  29.  35.  52.  42.  48.  37.  46.  51.  43.  63.  50.
  46.  41.  46.  41.  44.  46.  38.  46.  41.  44.  56.  50.  51.  43.  48.]

In [5]:
t_student=[]

for i in range(0,5):
    t_student.append(data[i])
    
from scipy.stats import norm
import matplotlib.pyplot as plt
fig, ax = plt.subplots(1, 1)

mean, var, skew, kurt = norm.stats(moments='mvsk')